
/**
 * 用户列表页面路由
 */
const router = require('koa-router')();
const {
  getUserListService,
  userLoginService
} = require('../../service/userServer');//获取用户列表


//获取用户列表
router.get("/api/manage/getUserList", async (ctx, next) => {
  await getUserListService(ctx);
})

//用户登录
router.post("/api/manage/userLogin", async (ctx, next) => {
  let postParam = ctx.request.body //获取post提交的数据
  await userLoginService(ctx, postParam)
})

module.exports = router;